package com.jia.interviewPro;

public class Pro0803 {
    public int findMagicIndex(int[] nums) {
        for(int i = 0; i < nums.length; i++) {
            if(i == nums[i]) return i;
        }
        return -1;
    }
}
